import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/Home/index.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login/index.vue')
  },
  {
    path: '/destination',
    name: 'destination',
    component: () => import('../views/Destination/index.vue'),
  },
  {
    path: '/destinationDetail',
    name: 'destinationDetail',
    component: () => import('../views/DestinationDetail/index.vue'),
  },
  {
    path: '/strategy',
    name: 'strategy',
    component: () => import('../views/Strategy/index.vue'),
  },
  {
    path: '/strategyDetail',
    name: 'strategyDetail',
    component: () => import('../views/StrategyDetail/index.vue'),
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
